<template>
	<view>
		<!-- <view class="" :style="'height:'+statusBarHeight+'rpx'"></view> -->
		<u-navbar title="质押" rightText="我的质押" @rightClick="rightClick" :placeholder="true" :autoBack="true"
			:bgColor="bgColor" titleStyle="color:#fff" leftIconColor='#FFFFFF;'
			style="font-weight: bold;color: #FFFFFF;">
		</u-navbar>
		<view class="pledge" v-for="item in 3">
			<view class="pledge_top flex">
				<image src="../../static/sel.png" mode=""></image>
				<view class="">TOPS</view>
			</view>
			<view class="pledge_texts flex-between">
				<view class="">预计APY</view>
				<view class="">100 TOPS 每日预计奖励</view>
			</view>
			<view class="pledge_nums flex-between">
				<view class="">4.50%</view>
				<view class="">0.0123 TOPS</view>
			</view>
			<view class="pledge_btn" @click="$fun.jump(`./addpledge`)">
				质押
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgColor: "transparent",
				statusBarHeight: 0
			}
		},
		onLoad() {
			const phoneInfo = uni.getSystemInfoSync(); // 获取手机系统信息
			this.statusBarHeight = phoneInfo.statusBarHeight
		},
		methods: {
			rightClick() {
				this.$fun.jump('./pledgelist')
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		width: 100%;
		height: 100%;
		background-image: url('../../static/bg@2x.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;

	}

	.pledge {
		width: 690rpx;
		height: 322rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		margin: 20rpx auto 0;
		padding: 30rpx;
		box-sizing: border-box;

		&_top {
			font-weight: 500;
			font-size: 36rpx;
			color: #333333;

			image {
				width: 72rpx;
				height: 72rpx;
				margin-right: 20rpx;
			}
		}

		&_texts {
			font-weight: 400;
			font-size: 24rpx;
			color: #999999;
			margin: 30rpx 0 10rpx;
		}

		&_nums {
			font-weight: 500;
			font-size: 32rpx;
			color: #333333;
		}

		&_btn {
			width: 630rpx;
			height: 64rpx;
			background: $uni-color-primary;
			border-radius: 44rpx;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 64rpx;
			margin-top: 20rpx;
		}
	}
</style>